package com.scw.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateSessionFactory {
	private static SessionFactory sf;
	static{
		Configuration con=new Configuration();
		con.configure();
		sf=con.buildSessionFactory();
	}
	public static SessionFactory getSessionFactory(){
		return sf;
	}
}
